import { getUserRole } from '@/utils/cache'


export function hasPermission(role){
    const roles = getUserRole();
    return roles.indexOf(role)>=0;
}